package com.tbrain.secretFriend.model;

public class User {
	private int userId;
	private String userName;
	private String password;
	private int groupId;
	private int secretFriend;

	public User(){

	}

	public int getUserId() {
		return userId;
	}


	public void setUserId(int userId) {
		this.userId = userId;
	}


	public String getUserName() {
		return userName;
	}


	public void setUserName(String userName) {
		this.userName = userName;
	}


	public String getPassword() {
		return password;
	}


	public void setPassword(String password) {
		this.password = password;
	}


	public int getGroupId() {
		return groupId;
	}


	public void setGroupId(int groupId) {
		this.groupId = groupId;
	}


	public int getSecretFriend() {
		return secretFriend;
	}


	public void setSecretFriend(int secretFriend) {
		this.secretFriend = secretFriend;
	}


	public boolean hasPassword(){
		if(password==null || password.trim().equals("")){
			return false;
		}
		return true;
	}

	public String toString(){
		return ""+userId+"-"+userName+"-"+groupId+"-"+secretFriend;
	}
}

